New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

atom-package-deps

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atom-package-deps

Automatically install package dependencies

  • 5.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
174
decreased by-29.84%
Maintainers
2
Weekly downloads
 
Created
Source

Atom-Package-Deps

Atom-Package-Deps is a module that lets your atom package depend on other atom packages, It's quite simple and shows a nice progress bar as a notification as the packages are installed.

How it works?

You need to have an array of package deps in your package manifest, like

{
  "name": "linter-ruby",
  ...
  "package-deps": ["linter"]
}

If you need to install package deps from a source other than https://atom.io, suffix a # character followed by a git remote (in any format supported by apm install):

{
  "name": "linter-ruby",
  ...
  "package-deps": ["linter#steelbrain/linter"]
}

If you need to install specific version of a package, you can add the minimum required version to the package name (semver doesn't work!), like this

{
  "name": "linter-ruby",
  ...
  "package-deps": ["linter:2.0.0"]
}

Because the package installation is async, it returns a promise that resolves when all the dependencies have been installed.

'use babel'

module.exports = {
  activate() {
    // replace the example argument 'linter-ruby' with the name of this Atom package
    require('atom-package-deps')
      .install('linter-ruby')
      .then(function() {
        console.log('All dependencies installed, good to go')
      })
  },
}
API
export function install(packageName, showPrompt = true)
Screenshots

Installation Prompt

Installation Progress

Installation Complete

License

This project is licensed under the terms of MIT license, See the license file or contact me for more info.

Keywords

FAQs

Package last updated on 20 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc